Code python : Young, elargissement spatial d’une source. 






import numpy 
import matplotlib.pyplot as plot 


D=1000.0 # en mm
a = 0.1


def I(x,Lambda):
    return 2.0*(1.0+numpy.cos(2*numpy.pi/(Lambda*1e-6)*x*a/D))


L = 50.0
x = numpy.linspace(-L,L,500)


plot.figure(figsize=(12,6))
plot.plot(x,I(x,600),'b',label='600 nm')
plot.plot(x,I(x,625),'y',label='625 nm')
plot.plot(x,I(x,650),'r',label='650 nm')
plot.xlabel('x (mm)')
plot.ylabel('I')
plot.legend(loc='upper right')
plot.title(r"$a=0,10\,\rm{mm},\ D=1000\,\rm{mm}$")
plot.grid()